﻿#pragma once

#include "Direction.h"

struct FVec
{
public:

	int x = -99998;
	int y = -99998;
	
public:

	static TOWERDEFENCE_API const FVec DefaultVec;

	FVec();
	FVec(int _x, int _y);

	void Set(int _x, int _y);

	FVec operator+(const FVec& other) const;
	FVec operator+(const FDirection& other) const;
	bool operator==(const FVec& other) const;
	
public:
	
	TArray<FVec> cardinalNeighbors();
	FVec offset(int _x, int _y);
	
};
